import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)


// 导入对应的路由组件
import HomeContainer from '../components/tabbar/HomeContainer.vue'
import MemberContainer from '../components/tabbar/MemberContainer.vue'
import ShopcarContainer from '../components/tabbar/ShopcarContainer'
import SearchContainer from '../components/tabbar/SearchContainer.vue'


export default new Router({
  // routes: [
  //   {
  //     path: '/',
  //     name: 'HelloWorld',
  //     component: HelloWorld
  //   },{
  //     path:'helloWorld',
  //     component:()=>Sstem.import('@/components/HelloWoronents')
  //   }
  // ]
  Router : [//路由匹配规则
    {path : '/home' , component : HomeContainer},
    {path : '/member' , component : MemberContainer},
    {path : '/shopcar' , component : ShopcarContainer},
    {path : '/search' , component : SearchContainer},
    // {
    //   path:'home',
    //   component:()=>Sstem.import('@/components/HelloWoronents')
    // }
  ],
  linkActiveClass : 'mui-active' //覆盖默认的路由高亮类，默认类叫做router-link-active
})
